﻿using SingleUserMall.Items;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SingleUserMall.Orders.Form
{
    /// <summary>
    /// 订单评论
    /// </summary>
    public class OrderCommentForm
    {
        /// <summary>
        /// 订单id
        /// </summary>
        public long OrderId { get; set; }
        /// <summary>
        /// 商品评论
        /// </summary>
        public List<ItemCommentForm> ItemComments { get; set; }
        /// <summary>
        /// 安装师傅评论
        /// </summary>
        //public WorkerComment workerComments { get; set; }
    }

    public class ItemCommentForm
    {
        /// <summary>
        /// 商品id
        /// </summary>
        public long ItemId { get; set; }
        /// <summary>
        /// 商品规格id
        /// </summary>
        public long ItemSpecId { get; set; }
        /// <summary>
        /// 星级
        /// </summary>
        public int Star { get; set; }
        /// <summary>
        /// 评论标签（,分割）
        /// </summary>
        public string Tags { get; set; }
        /// <summary>
        /// 评论内容
        /// </summary>
        public string Comment { get; set; }
        /// <summary>
        /// 评论图片，以,分割
        /// </summary>
        public string Images { get; set; }
    }

    public class WorkerComment
    {
        /// <summary>
        /// 星级
        /// </summary>
        public int WorkerStar { get; set; }
        /// <summary>
        /// 评论标签（,分割）
        /// </summary>
        public string Tags { get; set; }
    }
}
